use crate::debug_log;

pub fn new_error<T: ToString>(message: T) -> std::io::Error{
    debug_log!("new error message: {}", message.to_string());
    return std::io::Error::new(
        std::io::ErrorKind::Other,
        format!("Error: {}",message.to_string()),
    );
}